import request from "../utils/request"

export const getArticles=(params)=>{
    return request({
        method:'get',
        url:"/articles",
        params
    })
}


export const getArticleById=(articleId)=>{
    return request({
        method:'get',
        url:"/articles/get",
        params:{
            articleId
        }
    })
}